export const option = {
  title: {
    text: "自产自销高亮钠灯策略",
  },
  grid: {
    left: "1%",
    right: "1%",
    bottom: "3%",
    containLabel: true,
  },
  xAxis: {
    type: "category",
    axisTick: {
      show: false, // 不显示坐标轴刻度线
    },
    axisLine: {
      show: false, // 不显示坐标轴线
    },
    data: [
      "00:00",
      "01:00",
      "02:00",
      "03:00",
      "04:00",
      "05:00",
      "06:00",
      "07:00",
      "08:00",
      "09:00",
      "10:00",
      "11:00",
      "12:00",
      "13:00",
      "14:00",
      "15:00",
      "16:00",
      "17:00",
      "18:00",
      "19:00",
      "20:00",
      "21:00",
      "22:00",
      "23:00",
      "24:00",
    ],
  },
  yAxis: {
    type: "value",
    interval: 1,
    min: -1,
    max: 1,
    axisLabel: {
      formatter: (value) => {
        return value === 0 ? "" : value > 0 ? "开" : "关";
      },
    },
  },
  visualMap: [
    {
      show: false,
      pieces: [
        {
          gte: 0,
          lte: 2,
          color: "green",
        },
        {
          lt: 0,
          color: "red",
        },
      ],
    },
  ],
  series: [
    {
      type: "line",
      step: "start",
      itemStyle: {
        opacity: 0,
      },
      data: [
        -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
        -1, 1, 1, -1, -1, -1, -1,
      ],
    },
  ],
};
